package cn.topevery.garden.dal.dao;

import cn.topevery.garden.entity.po.Section;
import cn.topevery.garden.entity.query.SectionQuery;
import cn.topevery.garden.framework.base.BaseDao;
import hw.topevery.framework.db.entity.DataPager;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author code-generate
 * @date 2021-08-06
 */
public interface SectionDao extends BaseDao<Section> {

    

    /**
     * 获取列表
     *
     * @param query
     */
    DataPager<Section> listPage(SectionQuery query);


    Map<String, Object> getBasicInfo(Integer id);

    List<Map<String, Object>> getShortList();

    /**
     * 描述 通过名称获取Id.
     *
     * @param name the name
     * @return the integer
     * @author wenzhao.lin
     * @created 2021 -08-19 13:23:05 Get section by name integer.
     */
    Integer getSectionIdByName(String name);

}
